package com.hsjk.szwj.module.official.dal.mysql.category;

import com.hsjk.szwj.framework.mybatis.core.mapper.BaseMapperX;
import com.hsjk.szwj.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.hsjk.szwj.module.official.controller.app.app.vo.AppOfficialWebsiteAppCategoryListReqVO;
import com.hsjk.szwj.module.official.dal.dataobject.app.OfficialWebsiteAppCategoryDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/01 09:06
 **/
@Mapper
public interface IOfficialWebsiteAppCategoryMapper extends BaseMapperX<OfficialWebsiteAppCategoryDO> {
    default List<OfficialWebsiteAppCategoryDO> selectList(AppOfficialWebsiteAppCategoryListReqVO reqVO) {
        return selectList(new LambdaQueryWrapperX<OfficialWebsiteAppCategoryDO>()
                .likeIfPresent(OfficialWebsiteAppCategoryDO::getCategoryName, reqVO.getCategoryName()));
    }
}
